package com.tul.exercise.base.clazz.base.eg6;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author tul
 * 《java编程思想》 14章 示例6:
 *
 */
public class Individual {
    /**
     * 名称
     */
    private String name;

    public Individual() {

    }

    public Individual(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString () {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
